package com.shawn.model.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.shawn.model.entity.Options;
import com.sun.org.apache.xml.internal.serializer.SerializerTrace;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author shawn
 * @date 2022年 11月 19日 17:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OptionsVo implements Serializable {
    private String id;
    private String option;

    public static  OptionsVo init(Options options){
        return new OptionsVo(options.getId().toString(), options.getOptions());
    }
}
